<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
    <h:head>
        <title>Login Form</title>
    </h:head>
    <h:body>
        <ui:composition template="/template.xhtml">
            <ui:define name="title">
                <h:graphicImage value="resources/images/logo.jpg"/>
            </ui:define>
                <!--<h:outputText value="Login"></h:outputText>-->
            <ui:define name="body">
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <center>
                <h:form class="formLogin">
                    <h:panelGrid columns="2">
                        <h:outputLabel value="Nombre de usuario" for="nomUsuario" />
                        <h:inputText id="nomUsuario" value="#{usuariosController.selected.login}" title="Nombre de usuario" required="true" requiredMessage="Usuario necesario"/>
                        <h:outputLabel value="Passoword" for="numPassoword" />
                        <h:inputSecret id="numPassoword" value="#{usuariosController.selected.password}" title="Numero de cedula" required="true" requiredMessage="Cedula necesaria"/>
                    </h:panelGrid>
                    <br />
                    <h:commandLink action ="#{usuariosController.iniciarSesion}" value="#{bundle.Iniciar}" />
                </h:form>
                </center>
            </ui:define>
        </ui:composition>
    </h:body>
</html>
